<h1>Listing calendars</h1>

<table>
  <tr>
    <th>Calendar type</th>
    <th>Starts</th>
    <th>Ends</th>
  </tr>

<% @calendars.each do |calendar| %>
  <tr>
    <td><%=h calendar.calendar_type %></td>
    <td><%=h calendar.starts %></td>
    <td><%=h calendar.ends %></td>
    <td><%= link_to 'Show', calendar %></td>
    <td><%= link_to 'Edit', edit_calendar_path(calendar) %></td>
    <td><%= link_to 'Destroy', calendar, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New calendar', new_calendar_path %>